--[[

A frame by frame bird animation example
The old frame is removed by Sprite:removeChild and the new frame is added by Sprite:addChild

This code is MIT licensed, see http://www.opensource.org/licenses/mit-license.php
(C) 2010 - 2011 Gideros Mobile 

]]

transition = SceneManager.flipWithFade

levelManager = LevelManager.new({
	--level 1
	[1] = Level1
})

--define scenes
sceneManager = SceneManager.new({
	--start scene
	["startPage"] = startPage,
	--helpPage
	["helpPage"] = helpPage,
	--optionsPage
	["optionsPage"] = optionsPage,
	--selectLevelPage
	["selectLevelPage"] = selectLevelPage,
	--level1
	["level1"] = Level1,
})

--add manager to stage
stage:addChild(sceneManager)

--start start scene
sceneManager:changeScene("startPage", 1, transition, easing.outBack)

--[[

local function stageTouch(event)
	player:fire()
 end
stage:addEventListener(Event.TOUCHES_END,stageTouch,self)

level=Level1.new()

level:start()


]]


